﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Globalization;

namespace The_LarX
{
    public static class IntUtil
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="ints"></param>
        /// <returns></returns>
        public static int Average(List<int> ints)
        {
            int final = 0;
            for (int i = 0; i < ints.Count; i++)
                final += ints[i];
            final /= ints.Count;
            return final;
        }

        public static int CreateFromString(string str)
        {
            return int.Parse(str, CultureInfo.InvariantCulture);
        }
    }
}
